package com.yeebo.admin.dao;

import com.github.pagehelper.Page;
import com.yeebo.model.admin.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface SysUserDao {

    int add(SysUser user);

    SysUser findByLoginName(@Param("loginName") String loginName);

    SysUser getByUserId(@Param("id") Long id);

    int update(SysUser updateUser);

    Page<SysUser> loadSysUserList(Map<String, Object> queryMap);

}
